<template>
  <el-select :value="value" class="w-140" size="small" @change="onChange">
    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"/>
  </el-select>
</template>

<script>
export default {
  components: {},
  props: {
    value: {
      type: Number,
      default: null
    }
  },
  data() {
    return {
      options: [
        {
          value: -1,
          label: this.$t('all_versions')
        },
        {
          value: 1,
          label: 'News'
        },
        {
          value: 2,
          label: 'Newspro'
        },
        {
          value: 3,
          label: 'Newsapp'
        },
        {
          value: 4,
          label: 'Lite'
        }
      ]
    };
  },
  computed: {},
  watch: {},
  methods: {
    onChange(val) {
      this.$emit('input', val);
    }
  }
};
</script>
<style lang="scss" scoped>
</style>
